from django.db import models

# Create your models here.

class User(models.Model):
    name = models.CharField(max_length=255,default='',unique=True,verbose_name='用户名')
    key = models.CharField(max_length=255,verbose_name='用户key',unique=True)
    password = models.CharField(max_length=255,default='123456',verbose_name='用户密码')
    info = models.TextField(null=True,verbose_name='用户信息')
    is_delete = models.BooleanField(default=False,verbose_name='是否删除')
    created = models.DateTimeField(auto_now_add=True,verbose_name='创建时间')

    class Meta:
        db_table = 'A_User_Table'
        verbose_name = '用户表'
        verbose_name_plural = verbose_name
